#ifndef ITEM_H
#define ITEM_H

#include <string>

struct Item
{
    std::string text;
    unsigned int width; // Rendered width (pixels)
    Item *left;         // Previous item (linked list)
    Item *right;        // Next item (linked list)
    bool out;           // Is this an "output" item?

    Item(const std::string &t);
    ~Item() = default;
};

// Append item to linked list
void appendItem(Item *item, Item **listHead, Item **listTail);

#endif // ITEM_H
